Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh metadata after creating or deleting a topic #349

Merged
merged 5 commits into from
Jun 10, 2019

Conversation

jbruggem
Copy link
Collaborator

@jbruggem jbruggem commented May 21, 2019

This PR corrects what I believe is a bug in the implementation of create_topics and delete_topics, which leads to stale metadata in the GenServer's state.

Indeed, once the creation/deletion of a topic has happened, the metadata in the state of the worker is stale and does not represent the real state of the server.

Hence we should update those metadata when we do that creation or deletion.

I also took the opportunity to rename the callbacks I had added because they were not consistent with the other ones.

Edit: added some fixes to specs (small inconsistencies that were making our dialyzer fail downstream).

@jbruggem jbruggem force-pushed the fix_bug_create_topics branch from 9313473 to ce30307 Compare May 22, 2019 08:05
@joshuawscott
Copy link
Member

@jbruggem One question, otherwise just need to rebase and we're good to go.

@jbruggem jbruggem force-pushed the fix_bug_create_topics branch from 35caed0 to d58620a Compare June 3, 2019 14:35
@jbruggem jbruggem force-pushed the fix_bug_create_topics branch from d58620a to 35ce8f2 Compare June 3, 2019 14:37
@jbruggem jbruggem force-pushed the fix_bug_create_topics branch from 35ce8f2 to df72ac5 Compare June 3, 2019 14:40
@jbruggem
Copy link
Collaborator Author

jbruggem commented Jun 3, 2019

@jbruggem One question, otherwise just need to rebase and we're good to go.

Done, thanks !

Copy link
Member

@joshuawscott joshuawscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@joshuawscott joshuawscott merged commit 7655de9 into kafkaex:master Jun 10, 2019
@joshuawscott
Copy link
Member

@jbruggem we'd love to have you over on the elixir slack channel #kafkaex - any chance you could join? https://elixir-slackin.herokuapp.com/

@jbruggem
Copy link
Collaborator Author

@jbruggem we'd love to have you over on the elixir slack channel #kafkaex - any chance you could join? https://elixir-slackin.herokuapp.com/

With pleasure ! Thanks for offering.

@joshuawscott joshuawscott mentioned this pull request Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants